package com.woniuxy.qiantai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 11:56:24
 */
@Getter
@Setter
@TableName("t_product")
public class Product {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("price")
    private BigDecimal price;

    @TableField("img_src")
    private String imgSrc;

    @TableField("detail")
    private String detail;

    @TableField("shop_id")
    private Integer shopId;

    /**
     * 1：上架 2：下架
     */
    @TableField("status")
    private Integer status;

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", imgSrc='" + imgSrc + '\'' +
                ", detail='" + detail + '\'' +
                ", shopId=" + shopId +
                ", status=" + status +
                '}';
    }
}
